package member

type Member struct {
	Id       string
	Username string
	Password string
	Status   int
	Nickname string
	Phone    string

	// 默认会选择Member中的id 与 gorm:"foreignKey:UserId"指定的字段关联
	Address []MemberAddress `gorm:"foreignKey:UserId"`
}

func (m *Member) TableName() string {
	return "member"
}
